package com.vr.xuecheng.learning.controller;

import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.vr.xuecheng.learning.request.GetCourseTableRequestParams;
import com.vr.xuecheng.learning.response.GetCourseTableResponse;
import com.vr.xuecheng.learning.service.ICourseTablesService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* <p>
*  前端控制器
* </p>
*
* @author hzh
*/
@Slf4j
@RestController
@Tag(name = "我的课程表控制器")
@ApiSupport(author = "hzh", order = 1)
@RequestMapping("/mycoursetable")
@RequiredArgsConstructor
public class CourseTablesController {
    private final ICourseTablesService courseTablesService;
    @Operation(summary = "获取我的课程列表")
    @GetMapping
    public GetCourseTableResponse getCourseList(GetCourseTableRequestParams req) {
        return courseTablesService.getCourseList(req);
    }

}
